GDK W32: Fix the code to compile
authorРуслан Ижбулатов <lrn1986@gmail.com>
Tue, 21 May 2019 21:20:15 +0000 (21:20 +0000)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 28 May 2019 20:25:16 +0000 (20:25 +0000)
commit138104de2759c62225d2b0e786e9e5a3ea40dce9
treec4d5e780afeff7aa36dd616fcf36530b5c5d151e
parentd5e26cdb76c367eb2c67cffd32aa1cb6c32b7d85
GDK W32: Fix the code to compile

Somewhat change the order of initialization (to be closer
to what Wayland backend does).

Also remove the wrapper field that is no longer needed -
it used to hold a pointer to the main GdkWindow instance,
which wrapped GdkWin32ImplWindow. Since impls are gone,
nothing is wrapping anything anymore.

Fix a substitution error, where wrong pointer was added
to the hash table. Added a comment to ensure that future readers
(including myself) won't be confused by the fact that we're
inserting a pointer instead of the handle itself.
gdk/win32/gdksurface-win32.c
gdk/win32/gdksurface-win32.h